package cn.iocoder.yudao.module.trade.service.drainage;


import cn.iocoder.yudao.module.trade.service.orderpostconfig.OrderPostConfigService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class DrainageServiceFactory {

    @Resource
    private BxmDrainageServiceImpl bxmDrainageService;
    @Resource
    private OrderPostConfigService orderPostConfigService;
    @Resource
    private VivoDrainageServiceImpl vivoDrainageService;
    @Resource
    private DouyinDrainageServiceImpl douyinDrainageService;

    public DrainageService getByDrainageType(Integer drainageType) {
        if (bxmDrainageService.drainageType.equals(drainageType)) {
            return bxmDrainageService;
        } else if (vivoDrainageService.drainageType.equals(drainageType)) {
            return vivoDrainageService;
        } else if (douyinDrainageService.drainageType.equals(drainageType)) {
            return douyinDrainageService;
        }
        return null;
    }
}
